<div class="search">
    <input type="search" class="docsearch-input search-input" placeholder="搜索关键词" />
</div>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css" />
<script src="https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js"></script>
<script>
    docsearch({
    apiKey:'{{ .Site.Params.algolia.searchOnlyKey }}',
    indexName: '{{ .Site.Params.algolia.indexName }}',
    appId: '{{ .Site.Params.algolia.appId }}',
    inputSelector: '.docsearch-input',
    debug: false,
    // hitsPerPage: 5,
    });
</script>